<?php



namespace app\console\model;



use think\Db;

use think\Model;



class Job extends Model

{

    // 模型事件

    protected static function init()

    {

        // 写入前

        self::event('before_write', function ($data) {

            //$data->update_time = time();

        });

    }

}

